Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prysm rpc: Get payload attestation data #14380

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Prysm rpc: Get payload attestation data #14380

merged 1 commit into from
Sep 10, 2024

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Aug 24, 2024

This PR implements the retrieval of payload attestation data.

We also modified HighestReceivedBlockSlot to HighestReceivedBlockSlotRoot, which also returns the slot + root. I couldn't find a good compromise to retrieve a root for a given slot without accessing the DB. After considering various options, I believe HighestReceivedBlockSlotRoot is the best change.

@terencechain terencechain added the ePBS EIP-7732 label Aug 24, 2024
@terencechain terencechain requested a review from a team as a code owner August 24, 2024 19:17
@terencechain terencechain requested review from kasey, rauljordan and rkapka and removed request for a team August 24, 2024 19:17
@terencechain terencechain force-pushed the get-payload-attestation branch 2 times, most recently from c45122b to 7ec63f4 Compare August 24, 2024 19:40
@terencechain terencechain force-pushed the get-payload-attestation branch 3 times, most recently from 74d9c84 to 019fb8f Compare September 9, 2024 15:41
@@ -544,12 +545,6 @@ func (s *Service) recoverStateSummary(ctx context.Context, blockRoot [32]byte) (
return nil, errBlockDoesNotExist
}

// PayloadBeingSynced returns whether the payload for the block with the given
// root is currently being synced and what is the withheld status in the payload
func (s *Service) PayloadBeingSynced(root [32]byte) (primitives.PTCStatus, bool) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer used by external services. It is better not to have to export it if we can

Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@potuz potuz merged commit fdccbb5 into epbs Sep 10, 2024
15 of 16 checks passed
@potuz potuz deleted the get-payload-attestation branch September 10, 2024 14:55
potuz pushed a commit that referenced this pull request Sep 13, 2024
potuz pushed a commit that referenced this pull request Sep 18, 2024
potuz pushed a commit that referenced this pull request Sep 26, 2024
potuz pushed a commit that referenced this pull request Oct 7, 2024
potuz pushed a commit that referenced this pull request Oct 14, 2024
potuz pushed a commit that referenced this pull request Oct 16, 2024
potuz pushed a commit that referenced this pull request Oct 22, 2024
potuz pushed a commit that referenced this pull request Oct 28, 2024
potuz pushed a commit that referenced this pull request Nov 1, 2024
potuz pushed a commit that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ePBS EIP-7732
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants